this.source = source;
this.urgent = false;
this.expanded = false;
+ this._useActionIcons = false;
this._customContent = false;
this._bannerBodyText = null;
this._titleFitsInBannerMode = true;
let button = new St.Button();
- if (Gtk.IconTheme.get_default().has_icon(id)) {
+ if (this._useActionIcons && Gtk.IconTheme.get_default().has_icon(id)) {
button.add_style_class_name('notification-icon-button');
button.child = St.TextureCache.get_default().load_icon_name(id, St.IconType.SYMBOLIC, BUTTON_ICON_SIZE);
} else {
this.urgent = urgent;
},
+ setUseActionIcons: function(useIcons) {
+ this._useActionIcons = useIcons;
+ },
+
_styleChanged: function() {
this._spacing = this.actor.get_theme_node().get_length('spacing-columns');
},
}
if (actions.length) {
+ notification.setUseActionIcons(hints['action-icons'] == true);
for (let i = 0; i < actions.length - 1; i += 2)
notification.addButton(actions[i], actions[i + 1]);
}
GetCapabilities: function() {
return [
'actions',
+ 'action-icons',
'body',
// 'body-hyperlinks',
// 'body-images',
'icon-static',
'persistence',
// 'sound',
- 'x-gnome-icon-buttons'
];
},